package com.shiyi.design.factory.simplefactory;

import com.shiyi.design.factory.simplefactory.animals.Animal;

/**
 * @Author qiu
 * @Date 2021-01-15 下午 09:14
 *
 *
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {
        Animal animal = SimpleFactory.createAnimal("lion");
        System.out.println(animal.getName());
    }
}
